import request from '@/utils/request'
let serviceName="/user-service"
/**
 * 登录函数
 * @param {} website 
 */
export function login(login) {
    return request({ url: serviceName+"/user/login", method: "post", params: login });
}
export function getId(token){
    return request({ url: serviceName+"/user/getId", method: "post", params: {"token":token} });
}
export function registerUser(user){
    return request({ url: serviceName+"/user/insert", method: "post",data:user});
}
export function getById(id){
    return request({ url: serviceName+"/user/getById", method: "post",params:{"id":id}});
}
export function updateUser(user){
    return request({ url: serviceName+"/user/update", method: "post",data:user});
}